import instance from '@/utils/request';
//显示
export function getSmartLampData(data) {
    return instance.request({
        url:"/api/SmartLamp/GetSmartLamp",
        method: "get",
        data
    })
}

//添加
export function addSmartLampData(data) {
    return instance.request({
        url:"/api/SmartLamp/PostAddSmartLamp",
        method: "post",
        data
    })
}
//删除
export function deleteSmartLampData(data) {
    return instance.request({
        url:"/api/SmartLamp/DeleteSmartLamp",
        method: "delete",
        data
    })
}
//修改
export function updateSmartLampData(data) {
    return instance.request({
        url:"/api/SmartLamp/PutUpdateSmartLamp",
        method: "put",
        data
    })
}

//批量删除
export function deleteSmartLampDatas(data) {
    return instance.request({
        url:"/api/SmartLamp/SmartLampsDeleteDatas?ids=",
        method: "post",
        data
    })
}
//获取总条数
export function GetCount() {
    return instance.request({
        url: "/api/SmartLamp/GetCount",
        method: "get",
    })
}
//显示分页查询
export function GetSmartLampsPage(data) {
    return instance.request({
        url: "/api/SmartLamp/GetSmartLampsPage",
        method: "post",
        data
    })
}
